package doxygenxml.compound;
 
/**********************************************************************************************
 * Copyright (c) 2001-2020 Liquid Technologies Limited. All rights reserved.
 * See www.liquid-technologies.com for product details.
 *
 * Please see products End User License Agreement for distribution permissions.
 *
 * WARNING: THIS FILE IS GENERATED
 * Changes made outside of ##HAND_CODED_BLOCK_START blocks will be overwritten
 *
 * Generation  :  by Liquid XML Data Binder 18.0.5.9988
 * Using Schema: CENSORED
 **********************************************************************************************/
	
// <summary>
// This class represents the ComplexType docEntryType
// </summary>
public class DocEntryType extends com.liquid_technologies.ltxmllib18.XmlGeneratedClass {
	private static final long serialVersionUID = 13L;

	// <summary>
	// 	Constructor for DocEntryType
	// </summary>
	// <remarks>
	// The class is created with all the mandatory fields populated with the
	// default data. 
	// All Collection object are created.
	// However any 1-n relationships (these are represented as collections) are
	// empty. To comply with the schema these must be populated before the xml
	// obtained from ToXml is valid against the schema CENSORED
	// </remarks>
	public DocEntryType() {
		setElementName("docEntryType");
		init();
	}
	public DocEntryType(String elementName) {
		setElementName(elementName);
		init();
	}		

	// <summary>
	// 	Initializes the class
	// </summary>
	// <remarks>
	// This creates all the mandatory fields (populated with the default data) 
	// All Collection object are created.
	// However any 1-n relationships (these are represented as collections) are
	// empty. To comply with the schema these must be populated before the xml
	// obtained from ToXml is valid against the schema CENSORED.
	// </remarks>
	@Override
	protected void init() {
		try {
			doxygenxml.compound.Registration.iRegistrationIndicator = 0; // causes registration to take place
			_thead = doxygenxml.compound.DoxBool.Yes;
			_isValidThead = false;
			_colspan = java.math.BigInteger.ZERO;
			_isValidColspan = false;
			_rowspan = java.math.BigInteger.ZERO;
			_isValidRowspan = false;
			_align = doxygenxml.compound.DoxAlign.Left;
			_isValidAlign = false;
			_class = "";
			_isValidClass = false;
			_para = new doxygenxml.compound.XmlObjectCollection<doxygenxml.compound.DocParaType>("para", "", 0, -1, false, doxygenxml.compound.DocParaType.class);

			_anyAttributes = new com.liquid_technologies.ltxmllib18.AttributeCol("##any", "##any", "");
			// ##HAND_CODED_BLOCK_START ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
			// Add Additional initialization code here...
			// ##HAND_CODED_BLOCK_END ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

			getClassAttributeInfo();
			getClassElementInfo();
		} catch (Exception ex) {
			// should never happen
			ex.printStackTrace();
			throw new InternalError();
		}
	}



	// <summary>
	// Allows the class to be copied
	// </summary>
	// <remarks>
	// Performs a 'deep copy' of all the data in the class (and its children)
	// </remarks>
	@Override
	public Object clone() throws CloneNotSupportedException {
		try {
			doxygenxml.compound.DocEntryType newObject = (doxygenxml.compound.DocEntryType)super.clone();

			// clone, creates a bitwise copy of the class, so all the collections are the
			// same as the parents. Init will re-create our own collections, and classes, 
			// preventing objects being shared between the new an original objects
			newObject.init();
			newObject._thead = _thead;
			newObject._isValidThead = _isValidThead;
			if (_isValidColspan)
				newObject._colspan = new java.math.BigInteger(_colspan.toString());
			newObject._isValidColspan = _isValidColspan;
			if (_isValidRowspan)
				newObject._rowspan = new java.math.BigInteger(_rowspan.toString());
			newObject._isValidRowspan = _isValidRowspan;
			newObject._align = _align;
			newObject._isValidAlign = _isValidAlign;
			if (_isValidClass)
				newObject._class = _class;
			newObject._isValidClass = _isValidClass;
			for(int i=0; i<_para.size(); i++)
				newObject._para.add((doxygenxml.compound.DocParaType)_para.get(i).clone());
	
			newObject._anyAttributes = (com.liquid_technologies.ltxmllib18.AttributeCol)_anyAttributes.clone();
// ##HAND_CODED_BLOCK_START ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

// Add Additional clone code here...

// ##HAND_CODED_BLOCK_END ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

			return newObject;
		} catch (CloneNotSupportedException e) {
			// should never happen
			e.printStackTrace();
			throw new InternalError();
		}
	}

	@Override
	public String getTargetNamespace() {
		return "";
	}

	// <summary>
	// Represents an optional Attribute in the XML document
	// </summary>
	// <remarks>
	// This property is represented as an Attribute in the XML.
	// It is optional, initially it is not valid.
	// </remarks>
	public doxygenxml.compound.DoxBool getThead() throws com.liquid_technologies.ltxmllib18.exceptions.LtException {
		if (_isValidThead == false)
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidStateException("The Property thead is not valid. Set theadValid = true");
		return _thead;
	}
	public void setThead(doxygenxml.compound.DoxBool value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		_thead = value;
		_isValidThead = true;
	}
	// <summary>
	// Indicates if thead contains a valid value.
	// </summary>
	// <remarks>
	// true if the value for thead is valid, false if not.
	// If this is set to true then the property is considered valid, and assigned its
	// default value (doxygenxml.compound.DoxBool.Yes).
	// If its set to false then its made invalid, and subsequent calls to get thead
	// will raise an exception.
	// </remarks>
	public boolean isValidThead() {
		return _isValidThead;  
	}
	public void setValidThead(boolean value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value != _isValidThead) {
			_thead = doxygenxml.compound.DoxBool.Yes;
			_isValidThead = value;
		}
	}
	protected doxygenxml.compound.DoxBool _thead;
	protected boolean _isValidThead;

	// <summary>
	// Represents an optional Attribute in the XML document
	// </summary>
	// <remarks>
	// This property is represented as an Attribute in the XML.
	// It is optional, initially it is not valid.
	// </remarks>
	public java.math.BigInteger getColspan() throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (_isValidColspan == false)
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidStateException("The Property colspan is not valid. Set colspanValid = true");
		return _colspan;  
	}
	public void setColspan(java.math.BigInteger value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		_isValidColspan = true;
		_colspan = value;
	}

	// <summary>
	// Indicates if colspan contains a valid value.
	// </summary>
	// <remarks>
	// true if the value for colspan is valid, false if not.
	// If this is set to true then the property is considered valid, and assigned its
	// default value (java.math.BigInteger.ZERO).
	// If its set to false then its made invalid, and subsequent calls to get colspan
	// will raise an exception.
	// </remarks>
	public boolean isValidColspan() {
		return _isValidColspan;
	}
	public void setValidColspan(boolean value)  throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value != _isValidColspan) {
			_colspan = java.math.BigInteger.ZERO;
			_isValidColspan = value;
		}
	}
	protected boolean _isValidColspan;
	protected java.math.BigInteger _colspan;

	// <summary>
	// Represents an optional Attribute in the XML document
	// </summary>
	// <remarks>
	// This property is represented as an Attribute in the XML.
	// It is optional, initially it is not valid.
	// </remarks>
	public java.math.BigInteger getRowspan() throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (_isValidRowspan == false)
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidStateException("The Property rowspan is not valid. Set rowspanValid = true");
		return _rowspan;  
	}
	public void setRowspan(java.math.BigInteger value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		_isValidRowspan = true;
		_rowspan = value;
	}

	// <summary>
	// Indicates if rowspan contains a valid value.
	// </summary>
	// <remarks>
	// true if the value for rowspan is valid, false if not.
	// If this is set to true then the property is considered valid, and assigned its
	// default value (java.math.BigInteger.ZERO).
	// If its set to false then its made invalid, and subsequent calls to get rowspan
	// will raise an exception.
	// </remarks>
	public boolean isValidRowspan() {
		return _isValidRowspan;
	}
	public void setValidRowspan(boolean value)  throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value != _isValidRowspan) {
			_rowspan = java.math.BigInteger.ZERO;
			_isValidRowspan = value;
		}
	}
	protected boolean _isValidRowspan;
	protected java.math.BigInteger _rowspan;

	// <summary>
	// Represents an optional Attribute in the XML document
	// </summary>
	// <remarks>
	// This property is represented as an Attribute in the XML.
	// It is optional, initially it is not valid.
	// </remarks>
	public doxygenxml.compound.DoxAlign getAlign() throws com.liquid_technologies.ltxmllib18.exceptions.LtException {
		if (_isValidAlign == false)
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidStateException("The Property align is not valid. Set alignValid = true");
		return _align;
	}
	public void setAlign(doxygenxml.compound.DoxAlign value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		_align = value;
		_isValidAlign = true;
	}
	// <summary>
	// Indicates if align contains a valid value.
	// </summary>
	// <remarks>
	// true if the value for align is valid, false if not.
	// If this is set to true then the property is considered valid, and assigned its
	// default value (doxygenxml.compound.DoxAlign.Left).
	// If its set to false then its made invalid, and subsequent calls to get align
	// will raise an exception.
	// </remarks>
	public boolean isValidAlign() {
		return _isValidAlign;  
	}
	public void setValidAlign(boolean value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value != _isValidAlign) {
			_align = doxygenxml.compound.DoxAlign.Left;
			_isValidAlign = value;
		}
	}
	protected doxygenxml.compound.DoxAlign _align;
	protected boolean _isValidAlign;

	// <summary>
	// Represents an optional Attribute in the XML document
	// </summary>
	// <remarks>
	// This property is represented as an Attribute in the XML.
	// It is optional, initially it is not valid.
	// </remarks>
	public java.lang.String getClass_() throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (_isValidClass == false)
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidStateException("The Property class_ is not valid. Set class_Valid = true");
		return _class;  
	}
	public void setClass(java.lang.String value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		// Apply whitespace rules appropriately
		value = com.liquid_technologies.ltxmllib18.WhitespaceUtils.preserve(value); 
		_isValidClass = true;
		_class = value;
	}

	// <summary>
	// Indicates if class_ contains a valid value.
	// </summary>
	// <remarks>
	// true if the value for class_ is valid, false if not.
	// If this is set to true then the property is considered valid, and assigned its
	// default value ("").
	// If its set to false then its made invalid, and subsequent calls to get class_
	// will raise an exception.
	// </remarks>
	public boolean isValidClass() {
		return _isValidClass;
	}
	public void setValidClass(boolean value)  throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value != _isValidClass) {
			_class = "";
			_isValidClass = value;
		}
	}
	protected boolean _isValidClass;
	protected java.lang.String _class;

	// <summary>
	// A collection of paras
	// </summary>
	// <remarks>
	// This property is represented as an Element in the XML.
	// This collection may contain 0 to Many objects.
	// </remarks>
	public doxygenxml.compound.XmlObjectCollection<doxygenxml.compound.DocParaType> getPara() {
		return _para; 
	}
	protected doxygenxml.compound.XmlObjectCollection<doxygenxml.compound.DocParaType> _para;


	// <summary>
	// 	Additional attributes
	// </summary>
	public com.liquid_technologies.ltxmllib18.AttributeCol getAnyAttributes() {
		return _anyAttributes;  
	}
	protected com.liquid_technologies.ltxmllib18.AttributeCol _anyAttributes;

	@Override
	public String getNamespace() {
		return "";
	}	

	@Override
	public com.liquid_technologies.ltxmllib18.XmlObjectBase getBase() {
		return this;
	}
	protected void onEvent(com.liquid_technologies.ltxmllib18.XmlObjectBase msgSource, int msgType, Object data) {
		if (msgType == CollectionChangeEvent) {
		}
	}

	private static com.liquid_technologies.ltxmllib18.ParentElementInfo __parentElementInfo = null;
	private static com.liquid_technologies.ltxmllib18.ElementInfo[] __elementInfo = null;
	private static com.liquid_technologies.ltxmllib18.AttributeInfo[] __attributeInfo = null;
		
	protected com.liquid_technologies.ltxmllib18.ParentElementInfo getClassInfo() throws Exception {
		if (__parentElementInfo == null) {
			__parentElementInfo = new com.liquid_technologies.ltxmllib18.ParentElementInfo(	
																	com.liquid_technologies.ltxmllib18.XmlObjectBase.XmlElementGroupType.SEQUENCE,
																	com.liquid_technologies.ltxmllib18.XmlObjectBase.XmlElementType.ELEMENT, "docEntryType", "", true, false,
																	null, null, com.liquid_technologies.ltxmllib18.Conversions.ConversionType.TYPE_NONE, null, false);
		}
		return __parentElementInfo;
	}

	protected com.liquid_technologies.ltxmllib18.ElementInfo[] getClassElementInfo() throws Exception {
		if (__elementInfo == null) {
			__elementInfo = new com.liquid_technologies.ltxmllib18.ElementInfo[] {
				 new com.liquid_technologies.ltxmllib18.data.ElementInfoSeqClsCol("para", "", findGetterMethod("doxygenxml.compound.DocEntryType", "getPara"), com.liquid_technologies.ltxmllib18.XmlObjectBase.XmlElementType.ELEMENT)
			};
		}
		return __elementInfo;
	}

	protected com.liquid_technologies.ltxmllib18.AttributeInfo[] getClassAttributeInfo() throws Exception {
		if (__attributeInfo==null) {
			__attributeInfo = new com.liquid_technologies.ltxmllib18.AttributeInfo[] {
				 new com.liquid_technologies.ltxmllib18.data.AttributeInfoEnum("thead", "", findGetterMethod("doxygenxml.compound.DocEntryType", "getThead"), findSetterMethod("doxygenxml.compound.DocEntryType", "setThead", "doxygenxml.compound.DoxBool"), findGetterMethod("doxygenxml.compound.DocEntryType", "isValidThead"), getEnumFromString("doxygenxml.compound.DoxBool", "DoxBool"), getEnumToString("doxygenxml.compound.DoxBool", "DoxBool"), null)
				,new com.liquid_technologies.ltxmllib18.AttributeInfoPrimitive("colspan", "", findGetterMethod("doxygenxml.compound.DocEntryType", "getColspan"), findSetterMethod("doxygenxml.compound.DocEntryType", "setColspan", "java.math.BigInteger"), findGetterMethod("doxygenxml.compound.DocEntryType", "isValidColspan"), com.liquid_technologies.ltxmllib18.Conversions.ConversionType.TYPE_INTEGER, null, com.liquid_technologies.ltxmllib18.WhitespaceRule.COLLAPSE, new com.liquid_technologies.ltxmllib18.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null)
				,new com.liquid_technologies.ltxmllib18.AttributeInfoPrimitive("rowspan", "", findGetterMethod("doxygenxml.compound.DocEntryType", "getRowspan"), findSetterMethod("doxygenxml.compound.DocEntryType", "setRowspan", "java.math.BigInteger"), findGetterMethod("doxygenxml.compound.DocEntryType", "isValidRowspan"), com.liquid_technologies.ltxmllib18.Conversions.ConversionType.TYPE_INTEGER, null, com.liquid_technologies.ltxmllib18.WhitespaceRule.COLLAPSE, new com.liquid_technologies.ltxmllib18.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null)
				,new com.liquid_technologies.ltxmllib18.data.AttributeInfoEnum("align", "", findGetterMethod("doxygenxml.compound.DocEntryType", "getAlign"), findSetterMethod("doxygenxml.compound.DocEntryType", "setAlign", "doxygenxml.compound.DoxAlign"), findGetterMethod("doxygenxml.compound.DocEntryType", "isValidAlign"), getEnumFromString("doxygenxml.compound.DoxAlign", "DoxAlign"), getEnumToString("doxygenxml.compound.DoxAlign", "DoxAlign"), null)
				,new com.liquid_technologies.ltxmllib18.AttributeInfoPrimitive("class", "", findGetterMethod("doxygenxml.compound.DocEntryType", "getClass_"), findSetterMethod("doxygenxml.compound.DocEntryType", "setClass", "java.lang.String"), findGetterMethod("doxygenxml.compound.DocEntryType", "isValidClass"), com.liquid_technologies.ltxmllib18.Conversions.ConversionType.TYPE_STRING, null, com.liquid_technologies.ltxmllib18.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib18.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null)
				,new com.liquid_technologies.ltxmllib18.data.AttributeInfoAny("Any", "", findGetterMethod("doxygenxml.compound.DocEntryType", "getAnyAttributes"), true, "##any", "", null)
			};
		}
		return __attributeInfo;
	}

// ##HAND_CODED_BLOCK_START ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

// Add Additional Methods and members here...

// ##HAND_CODED_BLOCK_END ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
}


